package com.snj.test;

import java.util.ArrayList;
import java.util.List;

/**
 * @author yujie
 * @data 2024/8/22 15:25
 */
public class App {
    public static void main(String[] args) {
//        double number = 5.3;
//        double result = Math.ceil(Double.valueOf(999) / 500);
//        System.out.println("向上取整后的结果是: " + result);
//        Integer num = 0;
//        Integer temp = 0;
//        if (num.equals(temp)) {
//            System.out.println("测试0");
//        } else {
//            System.out.println("其他");
//        }
        
        System.out.println(joinStrings(new ArrayList<String>()));
    }

    public static String joinStrings(List<String> stringList) {
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < stringList.size(); i++) {
            sb.append(stringList.get(i));
            if (i < stringList.size() - 1) {
//                sb.append(",");
                sb.append("/");
            }
        }
        return sb.toString();

    }
}
